package com.ucvisitors.service;

import java.util.ArrayList;
import java.util.List;

import com.ucvisitors.dao.IBuildingDbDAO;
import com.ucvisitors.dto.Building;


public class VisitorsService implements IVisitorsService {
	
	IBuildingDbDAO buildingDbDAO;

	@Override
	public List<Building> fetchBuildings(){
		
		List<Building> allBuildings = new ArrayList<Building>();
		
		try {
			allBuildings = buildingDbDAO.fetchBuildings();
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		return allBuildings;
	}
	
	
}
